﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Global.Const;

namespace ViewModels.Shared
{
    public class PhoneModel
    {
        [RegularExpression("1\\d{10}", ErrorMessage = "* 电话号码格式错误")]
        [Required(ErrorMessage = "* 电话号码不能为空")]
        public string Number { get; set; }

        [RegularExpression(@"\d{4}", ErrorMessage = "* 只能是4位数字")]
        [Required(ErrorMessage = "* 验证码不能为空")]
        public string CheckCode { get; set; }
    }
}
